package school.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import school.util.DBUtil;

public class TestDDL {

	public static void main(String[] args) {
		String sql = "create table  bank2 (id bigint,acno varchar(40),address varchar(200))";
		Connection con = DBUtil.getConnection();
		try {
			PreparedStatement ps = con.prepareStatement(sql);
			int r = ps.executeUpdate();// r==0
			ps.close();
			con.close();
		} catch (SQLException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}
}
